//
//  EBHeader.h
//  UMDReader
//
//  Created by 张 霄鹤 on 10-2-1.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface EBHeader : NSObject {
	NSInteger version;
	NSInteger bookType;
	UIImage *cover;
	NSString *title;
	NSString *author;
	NSString *vendor;
	NSTimeInterval createTime;
	NSString *category;
	NSString *buyer;
	
	NSMutableArray *titles;
	NSMutableArray *offsets;
	
	char *pass;
}

@property (nonatomic, retain) NSString *title;
@property (nonatomic, retain) NSString *author;
@property (nonatomic, retain) NSString *vendor;
@property (nonatomic, retain) NSString *buyer;

- (void)load:(char *)buf length:(NSInteger)rlen needCrypt:(BOOL)crypted;

- (void)cryptHeader:(char *)buf length:(NSInteger)rlen;

- (NSArray *)getTitles;

- (NSArray *)getOffsets;


@end
